package com.bobo.netty.dao.chat;

import com.bobo.netty.dao.chat.po.ChatMessagePO;
import com.bobo.netty.dao.chat.po.ChatMessagePOExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ChatMessageMapper {
    long countByExample(ChatMessagePOExample example);

    int deleteByExample(ChatMessagePOExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ChatMessagePO record);

    int insertSelective(ChatMessagePO record);

    List<ChatMessagePO> selectByExample(ChatMessagePOExample example);

    ChatMessagePO selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ChatMessagePO record, @Param("example") ChatMessagePOExample example);

    int updateByExample(@Param("record") ChatMessagePO record, @Param("example") ChatMessagePOExample example);

    int updateByPrimaryKeySelective(ChatMessagePO record);

    int updateByPrimaryKey(ChatMessagePO record);
}
